import requests
import json


# 返回商品列表的函数
def re_stylegoods_list(postbody):

    import HenDaFuinterface.InterFace.token as token
    headers = {'content-type': 'application/json', 'token': token.token()}  # 请求头
    payload=postbody#接受用户请求

    ret = requests.post("http://shop.5913ex.com/api/v1/goodsStyle/getListByPage", data=json.dumps(payload),headers=headers)
    #print(ret.text)
    return json.dumps(ret.json(),ensure_ascii=False)




